<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        // alert(1)
        // alert(2)

        // for (let i = 0; i < 10000; i++) {

        //     console.log(i)
        // }
        // console.log('end')

        
        // 因为这是异步代码
        // 特点：要等同步代码执行完了，才会去执行异步代码
        setTimeout(() => {
            console.log('hello')
        }, 0);

        console.log('我在后面')
    </script>
</body>
</html>